x86:x2apic: Disable x2apic on x86-32 permanently
authorKeir Fraser <keir@xen.org>
Fri, 21 Jan 2011 15:58:27 +0000 (15:58 +0000)
committerKeir Fraser <keir@xen.org>
Fri, 21 Jan 2011 15:58:27 +0000 (15:58 +0000)
commit4b00b9efae1190d759e1f4e01e1af2e3767b575c
tree7288fd1c6970581861b164baf3e5746c865d56e2
parentf2154f99137f7021e76d2f5ad7e3155ff29fafde
x86:x2apic: Disable x2apic on x86-32 permanently

x2apic initialization on x86_32 uses vcpu pointer before it is
initialized. As x2apic is unlikely to be used on x86_32, this patch
disables x2apic permanently on x86_32. It also asserts the sanity of
vcpu pointer before dereference to prevent further misuse.

Signed-off-by: Fengzhe Zhang <fengzhe.zhang@intel.com>
xen/arch/x86/apic.c